import { getData } from "@/utils/request";
import { dataTool } from "echarts";

export async function getTable(data: any) {
    const result = await getData('/api/lawyer/list', { page: 1, pageSize: 10 });
    return result;
  }

export async function miss_table(data:any) {
  const result =await getData('/api/lawyer/delete',{ id: data.id});
  return result;
}

export async function add_table(data:any) {
  const result=await getData('/api/lawyer/add',data);
  return result;
}

export async function change_table(data:any) {
  const request=await getData('/api/lawyer/change',data,);
  return request;
}

export async function get_zhiquan(data:any) {
  const request=await getData('/api/lawyer/zhiquan',{id:data.role.id})
  return request;
}
